Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes InvalidOperationException in WindowManager #596

Merged
merged 2 commits into from
Apr 6, 2019

Conversation

markgould
Copy link
Contributor

This is related to the issue I reported here: 772ed0b#r33040965

If CanCloseAsync executes too quickly and resumes on the same thread, then calling view.Close will result in an InvalidOperationException. The fix is to only call view.Close again if the DialogResult differs from the cachedDialogResult. If it does not, then we can simply set e.Cancel to false.

markgould and others added 2 commits April 4, 2019 15:20
@nigel-sampson
Copy link
Contributor

Tested this locally and it's looking good. Thanks.

@nigel-sampson nigel-sampson merged commit 1416e4a into Caliburn-Micro:master Apr 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants